package zpf.feign;

import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import zpf.config.EurekaAuthConfiguration;

/**
 * @InterfaceName: UserFeignCustomSecondClient
 * @Description: 登录认证Eureka服务 Feign 客户端
 * @Autor: ZPF
 * @Date: 2021/1/14 13:39
 **/
@FeignClient(name = "eureka", url = "http://localhost:8761/", configuration = EurekaAuthConfiguration.class)
public interface UserFeignCustomSecondClient {

    @RequestMapping(value = "/eureka/apps/{serviceName}", method = RequestMethod.GET)
    public String findEurekaInfo(@PathVariable("serviceName") String serviceName);

}
